﻿using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

/******************************************************************************************
 ** 文件名：	User.cs
 ** 创建人：	Tony Mucor
 ** 日期：	2013-07-24
 ** 描述：	用户实体类
 *****************************************************************************************/

/// <summary>
/// User 用户实体类
/// </summary>
public class User
{
	private int nID;
	private string strUsername;
	private string strPassword;
	private int nUserGroupID;
	private string strUserGroup;
	private int nStatus;
	private string strColumnIDs;
	private string strName = "";
	private int nDepartmentID = 0;

	private string strDepartment = "";

	public int ID
	{
		get { return nID; }
		set{nID = value;}
	}
	public string Username
	{
		get { return strUsername; }
		set { strUsername = value.Trim(); }
	}
	public string Password
	{
		get { return strPassword; }
		set { strPassword = value.Trim(); }
	}
	public int UserGroupID
	{
		get { return nUserGroupID; }
		set { nUserGroupID = value; }
	}
	public int Status
	{
		get { return nStatus; }
		set { nStatus = value; }
	}
	public string UserGroup
	{
		get { return strUserGroup; }
		set { strUserGroup = value.Trim(); }
	}

	public string ColumnIDs
	{
		get { return strColumnIDs; }
		set { strColumnIDs = value.Trim(); }
	}
	public string Name
	{
		get { return strName; }
		set { strName = value.Trim(); }
	}
	public int DepartmentID
	{
		get { return nDepartmentID; }
		set { nDepartmentID = value; }
	}
	public string Department
	{
		get { return strDepartment; }
		set { strDepartment = value; }
	}

	public User()
	{
		
	}
}
